<p>demo works!</p>
<button (click)="visible = true">打开弹窗</button>
<app-dialog [(visible)]="visible"></app-dialog>
<br/>
<br/>
<input [(ngModel)]="name" />
{{name}}